﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hinh
{
    class HinhChuNhat: Hinh
    {
        int a, b;
        float dt,cv;
        public HinhChuNhat()
        {
            a = 5;
            b = 6;
        }
        public HinhChuNhat(int d, int e)
        {
            a = d;
            b = e;
        }
        public override void VeHinh()
        {
            base.VeHinh();
        }
        public override void TinhDienTich()
        {
            dt = a * b;
            Console.WriteLine("Dien Tich HCN: " + dt);
        }
        public override void TinhChuVi()
        {
            cv = (a + b) * 2;
            Console.WriteLine("Chu vi HCN: " + cv);
          
        }
    }
}
